﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebAppAsp_MiprimerPrograma
{
    public partial class multiview : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MultiView1.ActiveViewIndex = 0;
        }

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (DropDownList1.SelectedValue == "vista0") {
                MultiView1.ActiveViewIndex = 0;
            }
            else if (DropDownList1.SelectedValue == "vista1")
            {
                MultiView1.ActiveViewIndex = 1;
            }
            else if (DropDownList1.SelectedValue == "vista2")
            {
                MultiView1.ActiveViewIndex = 2;
            }
        }
    }
}